<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

/**
 * [ 资讯部系统路由 ]
 */
Route::group([
    'prefix'        => config('admin.route.prefix')."/consultation",
    'namespace'     => config('admin.route.namespace')."\\Consultation",
    'middleware'    => config('admin.route.middleware'),
],function (Router $router) {
	// 记录列表
	$router->any('consultation_list','ConsultationListController@index');
	$router->any('consultation_list/get_data','ConsultationListController@getData');
	$router->any('consultation_list/export_data','ConsultationListController@exportData');
	// dashboard
	$router->any('dashboard','DashboardController@index');
	$router->post('dashboard/clear_excel','DashboardController@clearExcel');
	// 学生、蓝海列表
	$router->any('st_list','StController@index');
	$router->any('st_list/get_data','StController@getData');
	$router->any('st_list/export_data','StController@exportData');
	$router->post('st_list/destroy','StController@destroy');
	$router->post('st_list/change_status','StController@changeStatus');
	// 电话咨询
	$router->any('phone_consultation','PhoneConsultationController@index');
	$router->any('phone_consultation/query_phone','PhoneConsultationController@QueryPhone');
	$router->any('phone_consultation/get_all_st_table','PhoneConsultationController@getAllStData');
	$router->any('phone_consultation/bind','PhoneConsultationController@bind');
	// 个人主页
	$router->any('register','RegisterController@index');
	$router->any('register/save','RegisterController@save');
	$router->any('register/dolink','RegisterController@doLink');
	$router->any('register/edit_parent','RegisterController@editParent');
	// 开班计划
	$router->any('newclass','NewClassController@index');
	$router->get('newclass/get_seaform_opt','NewClassController@getSeaformOpt');
	$router->get('newclass/get_table_data','NewClassController@getTableData');
	$router->any('newclass/create','NewClassController@create');
	$router->post('newclass/store','NewClassController@store');
	$router->any('newclass/edit/{id}','NewClassController@edit');
	$router->post('newclass/update','NewClassController@update');
	$router->any('newclass/destory','NewClassController@destory');
	$router->any('newclass/distribute','NewClassController@distribute');
	// 工单
	$router->any('workorder','WorkOrderController@index');
	$router->any('workorder/get_list','WorkOrderController@getList');
	// 池
	$router->any('pond','PondController@index');
	$router->any('pond/get_list','PondController@getList');
	// 资源路由
	$router->resources([

    ]);
});
?>
